home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsISVGRendererSurface.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  149 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISVGRendererSurface.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISVGRendererSurface_h__
  6. #define __gen_nsISVGRendererSurface_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISVGRendererSurface */
  19. #define NS_ISVGRENDERERSURFACE_IID_STR "0b3c88dc-2e37-4c20-902f-34f470adf711"
  20.  
  21. #define NS_ISVGRENDERERSURFACE_IID \
  22.   {0x0b3c88dc, 0x2e37, 0x4c20, \
  23.     { 0x90, 0x2f, 0x34, 0xf4, 0x70, 0xad, 0xf7, 0x11 }}
  24.  
  25. /**
  26.  * \addtogroup rendering_backend_interfaces Rendering Backend Interfaces
  27.  * @{
  28.  */
  29. /**
  30.  * One of a number of interfaces (all starting with nsISVGRenderer*)
  31.  * to be implemented by an SVG rendering engine. See nsISVGRenderer
  32.  * for more details.
  33.  *
  34.  * This interface abstracts a rendering engine-native surface object.
  35.  */
  36. class NS_NO_VTABLE nsISVGRendererSurface : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGRENDERERSURFACE_IID)
  40.  
  41.   /* readonly attribute unsigned long width; */
  42.   NS_IMETHOD GetWidth(PRUint32 *aWidth) = 0;
  43.  
  44.   /* readonly attribute unsigned long height; */
  45.   NS_IMETHOD GetHeight(PRUint32 *aHeight) = 0;
  46.  
  47.   /* void getData ([array, size_is (length)] out PRUint8 bits, out unsigned long length, out long stride); */
  48.   NS_IMETHOD GetData(PRUint8 **bits, PRUint32 *length, PRInt32 *stride) = 0;
  49.  
  50.   /* void lock (); */
  51.   NS_IMETHOD Lock(void) = 0;
  52.  
  53.   /* void unlock (); */
  54.   NS_IMETHOD Unlock(void) = 0;
  55.  
  56. };
  57.  
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSISVGRENDERERSURFACE \
  60.   NS_IMETHOD GetWidth(PRUint32 *aWidth); \
  61.   NS_IMETHOD GetHeight(PRUint32 *aHeight); \
  62.   NS_IMETHOD GetData(PRUint8 **bits, PRUint32 *length, PRInt32 *stride); \
  63.   NS_IMETHOD Lock(void); \
  64.   NS_IMETHOD Unlock(void); 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  67. #define NS_FORWARD_NSISVGRENDERERSURFACE(_to) \
  68.   NS_IMETHOD GetWidth(PRUint32 *aWidth) { return _to GetWidth(aWidth); } \
  69.   NS_IMETHOD GetHeight(PRUint32 *aHeight) { return _to GetHeight(aHeight); } \
  70.   NS_IMETHOD GetData(PRUint8 **bits, PRUint32 *length, PRInt32 *stride) { return _to GetData(bits, length, stride); } \
  71.   NS_IMETHOD Lock(void) { return _to Lock(); } \
  72.   NS_IMETHOD Unlock(void) { return _to Unlock(); } 
  73.  
  74. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  75. #define NS_FORWARD_SAFE_NSISVGRENDERERSURFACE(_to) \
  76.   NS_IMETHOD GetWidth(PRUint32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  77.   NS_IMETHOD GetHeight(PRUint32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  78.   NS_IMETHOD GetData(PRUint8 **bits, PRUint32 *length, PRInt32 *stride) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(bits, length, stride); } \
  79.   NS_IMETHOD Lock(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Lock(); } \
  80.   NS_IMETHOD Unlock(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unlock(); } 
  81.  
  82. #if 0
  83. /* Use the code below as a template for the implementation class for this interface. */
  84.  
  85. /* Header file */
  86. class nsSVGRendererSurface : public nsISVGRendererSurface
  87. {
  88. public:
  89.   NS_DECL_ISUPPORTS
  90.   NS_DECL_NSISVGRENDERERSURFACE
  91.  
  92.   nsSVGRendererSurface();
  93.  
  94. private:
  95.   ~nsSVGRendererSurface();
  96.  
  97. protected:
  98.   /* additional members */
  99. };
  100.  
  101. /* Implementation file */
  102. NS_IMPL_ISUPPORTS1(nsSVGRendererSurface, nsISVGRendererSurface)
  103.  
  104. nsSVGRendererSurface::nsSVGRendererSurface()
  105. {
  106.   /* member initializers and constructor code */
  107. }
  108.  
  109. nsSVGRendererSurface::~nsSVGRendererSurface()
  110. {
  111.   /* destructor code */
  112. }
  113.  
  114. /* readonly attribute unsigned long width; */
  115. NS_IMETHODIMP nsSVGRendererSurface::GetWidth(PRUint32 *aWidth)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* readonly attribute unsigned long height; */
  121. NS_IMETHODIMP nsSVGRendererSurface::GetHeight(PRUint32 *aHeight)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125.  
  126. /* void getData ([array, size_is (length)] out PRUint8 bits, out unsigned long length, out long stride); */
  127. NS_IMETHODIMP nsSVGRendererSurface::GetData(PRUint8 **bits, PRUint32 *length, PRInt32 *stride)
  128. {
  129.     return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131.  
  132. /* void lock (); */
  133. NS_IMETHODIMP nsSVGRendererSurface::Lock()
  134. {
  135.     return NS_ERROR_NOT_IMPLEMENTED;
  136. }
  137.  
  138. /* void unlock (); */
  139. NS_IMETHODIMP nsSVGRendererSurface::Unlock()
  140. {
  141.     return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143.  
  144. /* End of implementation class template. */
  145. #endif
  146.  
  147.  
  148. #endif /* __gen_nsISVGRendererSurface_h__ */
  149.